package com.wfm;

import com.wfm.domain.ProductInfo;
import com.wfm.systemnotice.ProductInfoMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@SpringBootApplication
public class DaoApplication  {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(DaoApplication.class, args);
        ProductInfoMapper productInfoMapper = context.getBean("productInfoMapper", ProductInfoMapper.class);
        ProductInfo productInfo = productInfoMapper.selectById(1L);
        System.out.println(productInfo);
    }
}
